package com.chinacoal.microservice.fallback;

import java.util.List;

import org.springframework.stereotype.Component;

import com.chinacoal.microservice.IndicatorClient;
import com.chinacoal.microservice.pojo.CcmsSmartleasingIndicator;
import com.chinacoal.microservice.util.CodeMsg;
import com.chinacoal.microservice.util.Result;

/**
 * 考核模块-指标管理回退类
 * @author wiilead
 *
 */
@Component
public class IndicatorClientFallback implements IndicatorClient {

	/**
	 * 新增或修改指标
	 */
	@Override
	public Result addOrUpdateIndicator(CcmsSmartleasingIndicator indicator, String token) {
		// TODO Auto-generated method stub
		return Result.error(CodeMsg.METHOD_NOT_SUPPORTED);
	}

	/**
	 * 查询指标列表
	 */
	@Override
	public Result<List<CcmsSmartleasingIndicator>> getIndicatorList() {
		// TODO Auto-generated method stub
		return Result.error(CodeMsg.METHOD_NOT_SUPPORTED);
	}

	/**
	 * 删除指标
	 */
	@Override
	public Result deleteIndicator(String indicatorId) {
		// TODO Auto-generated method stub
		return Result.error(CodeMsg.METHOD_NOT_SUPPORTED);
	}

}
